//
#import "BKStruct.h"

@implementation BKStruct

- (id) initWithXMLElement: (NSXMLElement*) elem signatures: (BKSignatures*) sigs
{
	if(self = [super initWithXMLElement: elem signatures: sigs])
	{
		NSXMLNode* theNode = [elem attributeForName: @"opaque"];
		if([[theNode stringValue] isEqual: @"true"])
			_opaque = YES;
		else if([[theNode stringValue] isEqual: @"false"])
			_opaque = NO;
	}
	return self;
}

@synthesize opaque = _opaque;

@end
